<?xml version="1.0" encoding="utf-8"?>

<!--
  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation; either version 2 of the License, or
  (at your option) any later version.
  
  This program is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License for more details.
  
  You should have received a copy of the GNU General Public License
  along with this program; if not, write to the Free Software
  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-->

<?xml-stylesheet type="text/xsl" href="style.xsl"?>

<%@ include file="/WEB-INF/jsp/include.jsp" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="it-IT" lang="it-IT">
  <head>
    <title><authz:authentication operation="username"/>@<fmt:message key="general.company.name"/>::<fmt:message key="general.application.name"/></title>
    <style type="text/css">
      @import url(style.css);
    </style>
  </head>
  <body>    
    <p>
      <a href="index.htm"><fmt:message key="general.home_page"/></a>&nbsp;
    </p>              
    <h1><fmt:message key="inserisciTipoDocumento.form.insert.document_type.title"/></h1>
    <form:form name="formInserisciTipoDocumento" method="POST" action="inserisciTipoDocumento.htm" commandName="inserisciTipoDocumento">
      <form:label path="nome"><fmt:message key="bean.document_type.name"/></form:label>
      <form:input path="nome" maxlength="255"/>&nbsp;
      <form:errors path="nome" cssClass="formErrorMessage"/>
      <br/>
      <form:label path="cicloAttivo"><fmt:message key="bean.document_type.activeCycle"/></form:label>
      <form:select path="cicloAttivo" items="${cicloAttivoRefData}" multiple="false"/>&nbsp;
      <form:errors path="cicloAttivo" cssClass="formErrorMessage"/>
      <br/>
      <form:label path="movimentoContabile"><fmt:message key="bean.document_type.accountEntry"/></form:label>
      <form:select path="movimentoContabile" items="${movimentoContabileRefData}" multiple="false"/>&nbsp;
      <form:errors path="movimentoContabile" cssClass="formErrorMessage"/>
      <br/>      
      <form:label path="movimentoMagazzino"><fmt:message key="bean.document_type.warehouseEntry"/></form:label>
      <form:select path="movimentoMagazzino" items="${movimentoMagazzinoRefData}" multiple="false"/>&nbsp;
      <form:errors path="movimentoMagazzino" cssClass="formErrorMessage"/>
      <br/>  
      <input type="submit" value="<fmt:message key="general.save"/>"/> 
    </form:form>
    <%@ include file="/WEB-INF/jsp/valid-xhtml10.jsp" %>
  </body>
</html>

